import { createApp } from 'vue'
import App from '@/App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import 'element-plus/theme-chalk/dark/css-vars.css'
import 'virtual:svg-icons-register'
import router from '@/route'
import SvgIcon from '@/components/SvgIcon/index.vue'
import { isHasButton } from '@/directive'
import Classification from '@/components/publiccomponents/classification.vue'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import '@/styles/index.less'
import pinia from '@/store'
//@ts-ignore
import zhCn from 'element-plus/es/locale/lang/zh-cn.mjs'
const app = createApp(App);
app.use(ElementPlus, { locale: zhCn })
app.component('svg-icon', SvgIcon)
app.component('classification', Classification)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.use(router)
app.use(pinia)
isHasButton(app)
app.mount('#app')
